package com.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.lang.reflect.InvocationTargetException;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.sql.Timestamp;

import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;


/**
 * 维保计划
 * 数据库通用操作实体类（普通增删改查）
 */
@TableName("weibaojihua")
public class WeibaojihuaEntity<T> implements Serializable {
    private static final long serialVersionUID = 1L;


    public WeibaojihuaEntity() {

    }

    public WeibaojihuaEntity(T t) {
        try {
            BeanUtils.copyProperties(this, t);
        } catch (IllegalAccessException | InvocationTargetException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }
 /** 主键 */
    private Long id;

 /** 创建时间 */
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
    private Timestamp addtime;

 /** 维保项目 */
    private String weibaoxiangmu;

 /** 维保内容 */
    private String weibaoneirong;

 /** 维保周期 */
    private String weibaozhouqi;

 /** 维保地点 */
    private String weibaodidian;

 /** 维保开始时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp weibaokaishishijian;

 /** 维保结束时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp weibaojieshushijian;

 /** 负责人 */
    private String fuzeren;

 /** 联系方式 */
    private String lianxifangshi;

 /** 用户id */
    private Long userid;

    public void setId(Long id)
    {
        this.id = id;
    }
    public Long getId()
    {
        return id;
    }
    public void setAddtime(Timestamp addtime)
    {
        this.addtime = addtime;
    }
    public Timestamp getAddtime()
    {
        return addtime;
    }
    public void setWeibaoxiangmu(String weibaoxiangmu)
    {
        this.weibaoxiangmu = weibaoxiangmu;
    }
    public String getWeibaoxiangmu()
    {
        return weibaoxiangmu;
    }
    public void setWeibaoneirong(String weibaoneirong)
    {
        this.weibaoneirong = weibaoneirong;
    }
    public String getWeibaoneirong()
    {
        return weibaoneirong;
    }
    public void setWeibaozhouqi(String weibaozhouqi)
    {
        this.weibaozhouqi = weibaozhouqi;
    }
    public String getWeibaozhouqi()
    {
        return weibaozhouqi;
    }
    public void setWeibaodidian(String weibaodidian)
    {
        this.weibaodidian = weibaodidian;
    }
    public String getWeibaodidian()
    {
        return weibaodidian;
    }
    public void setWeibaokaishishijian(Timestamp weibaokaishishijian)
    {
        this.weibaokaishishijian = weibaokaishishijian;
    }
    public Timestamp getWeibaokaishishijian()
    {
        return weibaokaishishijian;
    }
    public void setWeibaojieshushijian(Timestamp weibaojieshushijian)
    {
        this.weibaojieshushijian = weibaojieshushijian;
    }
    public Timestamp getWeibaojieshushijian()
    {
        return weibaojieshushijian;
    }
    public void setFuzeren(String fuzeren)
    {
        this.fuzeren = fuzeren;
    }
    public String getFuzeren()
    {
        return fuzeren;
    }
    public void setLianxifangshi(String lianxifangshi)
    {
        this.lianxifangshi = lianxifangshi;
    }
    public String getLianxifangshi()
    {
        return lianxifangshi;
    }
    public void setUserid(Long userid)
    {
        this.userid = userid;
    }
    public Long getUserid()
    {
        return userid;
    }

}
